public class Text6 {
    public static void main(String[] args) {
     int num = 10;
        System.out.println(num);
        changeNum(num);
        System.out.println(num);//打印结果依然是10
    }
    public static void changeNum(int num) {
        num = 40;
    }
       /* public static void text1(){
            public static void text2(){
                //编译错误
            }
        }*/
}
